<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-7-24
 * Time: 下午2:28
 */
/* @var $this yii\web\View */
/**
 * @var \home\models\FormSignup $form_signup
 */
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;

$this->title = "注册";
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-signup">
    <div class="body-content">
        <div class="row">
            <div class="col-sm-5">
                <?php $form = ActiveForm::begin(); ?>
                <?=$form->field($form_signup, 'username')->textInput(['placeholder' => '用户名']) ?>
                <?=$form->field($form_signup, 'email')->textInput(['placeholder' => '邮箱']) ?>
                <?=$form->field($form_signup, 'password')->passwordInput(['placeholder' => '密码']) ?>
                <?=$form->field($form_signup, 'repassword')->passwordInput(['placeholder' => '重复密码']) ?>
                <?= $form->field($form_signup, 'code')->widget(\yii\captcha\Captcha::class) ?>
                <div class="form-group">
                    <?= Html::submitButton("注册", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
                    <?= Html::resetButton("重置", ['class' => 'btn btn-warning']) ?>
                </div>
                <?php ActiveForm::end(); ?>

                <p>
                    <?=Html::a("重新发送激活链接", ['site/resend-active-link-for-email']) ?>
                    <?=Html::a("忘记密码/重置密码", ['site/reset-password']) ?>
                </p>
            </div>
            <div class="col-sm-7">
                <h5>说明:</h5>
                <p>请填写正确的邮箱，注册后会发送一个激活链接到你的注册邮箱中。账号未激活将无法使用本站！</p>
            </div>
        </div>
    </div>
</div>